package test.solr;

import java.io.IOException;

import org.apache.solr.client.solrj.impl.HttpSolrClient;

public class SolrUtil {
	
	private static String url = "http://localhost:8080/solr";
	
	public static HttpSolrClient getSolrClient() {
		return new HttpSolrClient(url);
	}
	
	public static void closeClient(HttpSolrClient client) {
		try {
			client.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
